package com.dfbz.demo;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo04_字符串的转换功能 {
    public static void main(String[] args) {
        String s1 = "AbcdE";

        String newStr = s1.replace("c", "hello");
        System.out.println(newStr);


        /*char[] chars = s1.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            System.out.print(chars[i] + ",");
        }
        System.out.println();
        System.out.println("-----------------");

        byte[] bytes = s1.getBytes();
        for (int i = 0; i < bytes.length; i++) {
            System.out.print(bytes[i] + ",");
        }
        System.out.println();
        System.out.println("-----------------");

        String lowerCase = s1.toLowerCase();
        System.out.println(lowerCase);
        System.out.println("-----------------");

        String upperCase = s1.toUpperCase();
        System.out.println(upperCase);*/
    }
}
